﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace MvcApplication1.Models.User
{
    public class LogIn
    {

        [Display(Name = "User Name")]
        [DataType(DataType.EmailAddress)]
        [StringLength(50, MinimumLength = 5)]
        [Required(ErrorMessage = "Please fill in your user name.")]
        public string UserName { get; set; }

        [Required(ErrorMessage = "Please fill in your password.")]
        [DataType(DataType.Password)]
        [StringLength(20)]
        public string Password { get; set; }

        public bool rememberMe { get; set; }

        public LogIn()
        {

        }

        public LogIn(string username, string password)
        {
            UserName = username;
            Password = password;
        }
    }
}